<?php include_once 'inc/header.inc.php'; ?>

        <div class="tm-home-img-container">
            <img src="public/img/tm-home-img.jpg" alt="Image" class="hidden-lg-up img-fluid">
        </div>

        <section class="tm-section">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-xs-center">
                        <h2 class="tm-gold-text tm-title">推荐博文</h2>
                        <p class="tm-subtitle"> 大江南北十亿兵, 国仇就在今生平. 中华傲立世界日, 铁甲十万灭东瀛! </p>
                    </div>
                </div>
               <?php include_once 'inc/header.inc.php'; ?>
                <div class="row">
                    <?php include_once 'design.admin.php';?>
                     <?php if(!empty($lists)):foreach($lists as $key=>$val): ?>
                       <div class="col-xs-12 col-sm-6 col-md-6 col-lg-3 col-xl-3">
                       
                          <div class="tm-content-box">
                                <img src="public/img/<?php echo mt_rand(1,4); ?>.jpg" alt="Image" class="tm-margin-b-20 img-fluid">
                                <h4 class="tm-margin-b-20 tm-gold-text"><?php echo $val['title'];?></h4>
                                <p class="tm-margin-b-20"><?php echo $val['intro'];?></p>
                                <a href="/test.php?id=<?php echo $val['id'];?>" class="tm-btn text-uppercase" >详情</a>    
                          </div>
                          </div> 
                      <?php endforeach; endif; ?>
                          <div class="pages"><?php echo $pages; ?></div> 
                        
                </div>
                

     <?php include_once 'inc/footer.inc.php'; ?>              